#ifndef CONFIGDIALOG_H
#define CONFIGDIALOG_H

#include <QDialog>
#include <QShowEvent>
#include <QModelIndex>

namespace Ui {
    class ConfigDialog;
}

class ConfigDialog : public QDialog
{
    Q_OBJECT
private:
	class ConfigDialogPrivate;
	ConfigDialogPrivate *d;

	class Category;
	class CategoryModel;
	class CategoryDelegate;

	CategoryModel *m_pModel;
	CategoryDelegate *m_pDelegate;
public:
    explicit ConfigDialog(QWidget *parent = 0);
    ~ConfigDialog();

private:
    Ui::ConfigDialog *ui;

private slots:
	void saveSettings();
	void resetSettings();

	void changeCategory(QModelIndex index);

signals:
	void closed();
};

#endif // CONFIGDIALOG_H
